package ModuleFour.task04;

import java.io.Serializable;

public class UserMessage implements Serializable {

    private static final long serialVersionUID = -5509020055977613415L;


    private  User user;
    private String userMessage;

    public UserMessage() {
    }

    public UserMessage(String userMessage, User user) {
        this.user = user;
        this.userMessage = userMessage;
    }
    public UserMessage(String userMessage) {

    }
    public UserMessage(User user) {
        this.user = user;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getUserMessage() {
        return userMessage;
    }

    public void setUserMessage(String userMessage) {
        this.userMessage = userMessage;
    }
}
